<!DOCTYPE html>
<html>
<head>
	<title>Hello Web - Processing.js Test</title>
 	<script src="js/processing-1.4.1.min.js"></script>
 	<script src="js/jquery-1.8.3.min.js"></script> 	 	
 	<script src="js/jquery.class.min.js"></script>
	<script src="js/app.js"></script>
	<script src="js/Rect.js"></script>
	<script type="text/javascript">
		$(function(){
			app.start('canvas');
			$('#canvas').focus();
		});
		
		function add()
		{
			app.last.addObject();
			$('#canvas').focus();
		}
		
	</script> 	 
 </head>
 <body>
     <canvas id="canvas"></canvas>
     <button onclick="add();">Add</button>
</body>
</html>